from bs4 import BeautifulSoup								#导入库
soup = BeautifulSoup(open('index.html'),'lxml')					#创建对象
print(soup.attrs)										#输出soup的name
print(soup.p.attrs)										#输出soup.p的attrs属性
